package com.ynet.middleground.contract.entity;

import java.io.Serializable;
import java.time.LocalDateTime;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 合约模板表格参数表
 * </p>
 *
 * @author liulx
 * @since 2020-04-02
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("ct_template_table_param")
public class TemplateTableParam extends Model<TemplateTableParam> {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 表格 id
     */
    private Integer tableId;

    /**
     * 表格单元格 key
     */
    private String name;

    /**
     * 描述
     */
    private String description;

    /**
     * 是否删除 1：删除，0：未删除 默认 0
     */
    private Boolean isDeleted;

    /**
     * 渠道
     */
    private String channel;

    /**
     * 创建时间
     */
    private LocalDateTime gmtCreate;

    /**
     * 创建者
     */
    private Integer createBy;

    /**
     * 更新时间
     */
    private LocalDateTime gmtModified;

    /**
     * 更新者
     */
    private Integer modifiedBy;

    /**
     * 业态ID
     */
    private Integer formatId;

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
